home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-07-12 | 5.4 KB | 198 lines | [TEXT/MPS ] |
- /* CheckOut.r: CheckOut applet resources for ProjectDrag
- *
- * A set of applets for drag and drop source control by Tim Maroney.
- * See develop, issue 23 for details.
- *
- * Built on DropShell by Leonard Rosenthol, Stephan Somogyi, and Marshall Clow,
- * and using the MoreFiles utilities by Jim Luther.
- *
- * This software is free, but don't modify and redistribute it without
- * changing the status window to indicate your name and your changes!
- */
-
- #define SystemSevenOrLater 1
- #include "Types.r"
- #include "SysTypes.r"
- #include "BalloonTypes.r"
- #include "AEUserTermTypes.r"
-
- include "CheckOut.rsrc";
-
- /* First thing we need is the Finder Help Balloon */
- resource 'hfdr' (-5696) {
- HelpMgrVersion, 0, 0, 0,
- {
- HMStringItem {
- "Drag a source file onto this icon, and CheckOut will check it out for modification.",
- },
- }
- };
-
-
-
-
- /* Menus & Menu Help Resources */
- resource 'MENU' (128, "Apple") { 128, textMenuProc, 0x7FFFFFFD, enabled, apple,
- { /* array: 2 elements */
- /* [1] */ "About CheckOut…", noIcon, noKey, noMark, plain,
- /* [2] */ "-", noIcon, noKey, noMark, plain
- }
- };
-
- resource 'MENU' (129, "File") { 129, textMenuProc, allEnabled, enabled, "File",
- { /* array: 2 elements */
- /* [1] */ "Check File Out…", noIcon, "O", noMark, plain,
- /* [2] */ "Quit", noIcon, "Q", noMark, plain
- }
- };
-
- resource 'DITL' (128, purgeable) {
- { /* array DITLarray: 3 elements */
- /* [1] */ {97, 198, 117, 270}, Button { enabled, "OK" },
- /* [2] */ {8, 8, 87, 271}, StaticText { disabled,
- "CheckOut - ProjectDrag's applet for checking files out for modification. "
- "By Tim Maroney." },
- /* [3] */ {0, 0, 0, 0}, HelpItem { disabled, HMScanhdlg { 1 } }
- }
- };
-
- /* Here are the STR#'s that the Help text is stored in! */
- resource 'STR#' (128,purgeable) { /* help items for Apple Menu */
- { /* array StringArray: 3 elements */
- /* [1] */ "Utterly fascinating information about CheckOut.",
- /* [2] */ "Click here to dismiss this dialog.",
- /* [3] */ "This text describes the product, its author, and why!"
- }
- };
-
- resource 'STR#' (129,purgeable) { /* help items for File Menu */
- { /* array StringArray: ? elements */
- /* [1] */ "Use this menu to check a file out for modification and to exit CheckOut.",
- /* [2] */ "Use this menu to check a file out for modification and to exit CheckOut. "
- "This menu is unavailable now.",
- /* [3] */ "Use this menu to check a file out for modification and to exit CheckOut. "
- "This menu is unavailable until you respond to the alert box or dialog box.",
- /* [4] */ "This command is unavailable until you respond to the alert box or dialog box.",
- /* [5] */ "Use this command to check a file out for modification.",
- /* [6] */ "Use this command to check a file out for modification. "
- "Not available now for some strange reason.",
- /* [7] */ "Use this command to exit CheckOut.",
- /* [8] */ "Use this command to exit CheckOut. "
- "Not available now for some strange reason."
- }
- };
-
- resource 'STR#' (200, purgeable) { /* help info for the Error Dialog */
- { /* array StringArray: 3 elements */
- /* [1] */ "Click here to dismiss this dialog.",
- /* [2] */ "This text describes the error that occured.",
- /* [3] */ "This error ID gives more specific details of the error."
- }
- };
-
- resource 'STR#' (2001, purgeable) { /* progress info */
- { /* array StringArray: 2 elements */
- /* [1] */ "checking out “<1>”",
- /* [1] */ "canceling checkout of “<1>”"
- }
- };
-
- resource 'hmnu' (129, purgeable) { /* File */
- HelpMgrVersion, 0, 0, 0,
- HMSkipItem { /* no missing items */ },
- { /* array HMenuArray: 4 elements */
- HMStringResItem { /* Menu Title */
- 129, 1,
- 129, 2,
- 129, 3,
- 129, 4
- },
- HMStringResItem { /* Open File… */
- 129, 5,
- 129, 6,
- 0, 0,
- 0, 0
- },
- HMStringResItem { /* Quit */
- 129, 7,
- 129, 8,
- 0, 0,
- 0, 0
- },
- }
- };
-
- resource 'BNDL' (128, purgeable) {
- 'pdco',
- 0,
- { /* array TypeArray: 2 elements */
- /* [1] */
- 'FREF',
- { /* array IDArray: 2 elements */
- /* [1] */ 0, 128,
- /* [2] */ 1, 129
- },
- /* [2] */
- 'ICN#',
- { /* array IDArray: 2 elements */
- /* [1] */ 0, 128,
- /* [2] */ 1, 0
- }
- }
- };
-
- data 'pdco' (0) {
- "CheckOut - Free software by Tim Maroney!"
- };
-
- resource 'FREF' (128) { 'APPL', 0, "" };
- resource 'FREF' (129) { '****', 1, "" };
-
-
- /*
- This is the KEY resource in supporting AEVTs - it is used by scripting/macro
- systems such as Control Tower & QuicKeys in determing what events an application
- supports.
-
- In this one, we simply tell it we support the required events, since that is all
- we do. If you add additional events, you MUST consult the AETE documentation
- distributed by Apple. Make sure you find the RELEASE NOTES, since this resource
- has undergone a NUMBER of chanes.
- */
- resource 'aete' (0, "Apple Events Terminology") {
-
- 0x00, /* major version number in BCD */
- 0x90, /* minor version number in BCD. From 7/9/91 version of AEUT docs */
- english, /* descriptions are in english */
- roman, /* use roman language script system */
-
- { /* array Suites: 1 elements */
-
- /*******************************************************
- [1] -- The part that show we do the required AppleEvents
- *******************************************************/
-
- "Required Suite",
- "Events that every application should support",
- 'reqd',
- 1, /* suite level */
- 1, /* suite version */
-
- {
- /* array Events: 0 elements */
- },
-
- {
- /* array Classes: 0 elements */
- },
-
- {
- /* array ComparisonOps: 0 elements */
- },
-
- {
- /* array Enumerations: 0 elements */
- },
- }
- };
-